package com.kly.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kly.domain.dto.pircture.PictureCommentQueryRequest;
import com.kly.domain.entity.PictureComment;
import com.kly.domain.entity.User;
import com.kly.domain.vo.PictureCommentVO;

/**
* @author admin
* @description 针对表【picture_comment(图片评论)】的数据库操作Service
* @createDate 2025-03-24 13:36:46
*/
public interface PictureCommentService extends IService<PictureComment> {

    /**
     * 添加评论
     *
     * @param pictureId
     * @param comment
     * @param loginUser
     */
    void addComment(Long pictureId, String comment, User loginUser);

    /**
     * 分页查询评论
     * @param pictureCommentQueryRequest
     * @return
     */
    Page<PictureCommentVO> listPictureCommentByPage(PictureCommentQueryRequest pictureCommentQueryRequest);

    /**
     * 评论点赞
     *
     * @param commentId
     * @return
     */
    boolean doThumb(Long commentId);

    /**
     * 判断是否点赞
     *
     * @param pictureCommentVO
     * @param userId
     */
    void setIsThumb(PictureCommentVO pictureCommentVO, Long userId);
}
